home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / LaserWriterIIsc (New GX v1.1) / SCPrinterStatus.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-15  |  2.1 KB  |  61 lines  |  [TEXT/MPS ]

  1. /*---------------------------------------------------------------------------
  2. FILENAME
  3.     SCPrinterStatus.h
  4.  
  5. DESCRIPTION
  6.     This module contains the constant and type declarations for the 
  7.     SCPrinterStatus.c file.  That file contains the routines which manage
  8.     checking the status of the SC printer and alerting the user (as needed) to
  9.     problems that might arise.
  10.     
  11.     Note: this file contains some types and constants that need to be moved
  12.     from the Universal Driver to the public printing interfaces.
  13.         
  14. COPYRIGHT
  15.     Copyright Apple Computer, Inc. 1989-1996
  16.     All rights reserved. 
  17.  
  18. MODIFICATION HISTORY
  19.      6/14/96 - cn  - Updated to support Universal Interfaces 2.1.
  20. -------------------------------------------------------------------------- */
  21.  
  22. #ifndef __SCPRINTERSTATUS__
  23. #define __SCPRINTERSTATUS__
  24.     
  25.  
  26. /*********************************************************************************
  27.  *                                         CONSTANTS                                                     *
  28.  *********************************************************************************/
  29.  
  30. // Miscellaneous constants 
  31. enum
  32. {
  33.     kNoPrinterProblem        = 0,            // Indicates printer is not experiencing any problems 
  34.     kQueryRate                = 15            // Number of ticks between status commands to the printer
  35. };
  36.  
  37.  
  38. /*********************************************************************************
  39.  *                                            DEFINES                                                    *
  40.  *********************************************************************************/
  41.  
  42. #define    GetStatResID(printerProblem)            HiWord(printerProblem)
  43. #define    GetStatResIndex(printerProblem)        LoWord(printerProblem)
  44.  
  45.  
  46. /*********************************************************************************
  47.  *                                    FORWARD DECLARATIONS                                            *
  48. **********************************************************************************/
  49.  
  50. void SetPrinterProblemStatResIndex(short statResIndex, long *printerProblem);
  51.  
  52. void SetPrinterProblemStatResID(short statResID, long *printerProblem);
  53.  
  54. OSErr FindPrinterProblem(long *printerProblem,  Boolean *fAbort);
  55.  
  56. OSErr ResolvePrinterProblem(    long             printerProblem, 
  57.                                         Boolean         manualFeed,
  58.                                         gxPaperType    thePaperType,
  59.                                         short            *dialogResult);
  60.  
  61. #endif __SCPRINTERSTATUS__